function js(i){
	js(i);
}
function js(i){
	switch (i){
		case 1:
		document.getElementById("js1").style.display="block";
		document.getElementById("js2").style.display="none";
		document.getElementById("js3").style.display="none";
		document.getElementById("js4").style.display="none";
		break;
		case 2:
		document.getElementById("js1").style.display="none";
		document.getElementById("js2").style.display="block";
		document.getElementById("js3").style.display="none";
		document.getElementById("js4").style.display="none";
		break;
		case 3:
		document.getElementById("js1").style.display="none";
		document.getElementById("js2").style.display="none";
		document.getElementById("js3").style.display="block";
		document.getElementById("js4").style.display="none";
		break;
		case 4:
		document.getElementById("js1").style.display="none";
		document.getElementById("js2").style.display="none";
		document.getElementById("js3").style.display="none";
		document.getElementById("js4").style.display="block";
		break;
	}
}


function jq(i){
	jq(i);
}
function jq(i){
	switch (i){
		case 1:
		document.getElementById("jq1").style.display="block";
		document.getElementById("jq2").style.display="none";
		document.getElementById("jq3").style.display="none";
		document.getElementById("jq4").style.display="none";
		document.getElementById("jq5").style.display="none";
		document.getElementById("jq6").style.display="none";
		document.getElementById("jq7").style.display="none";
		document.getElementById("jq8").style.display="none";
		document.getElementById("jq9").style.display="none";
		break;
		case 2:
		document.getElementById("jq1").style.display="none";
		document.getElementById("jq2").style.display="block";
		document.getElementById("jq3").style.display="none";
		document.getElementById("jq4").style.display="none";
		document.getElementById("jq5").style.display="none";
		document.getElementById("jq6").style.display="none";
		document.getElementById("jq7").style.display="none";
		document.getElementById("jq8").style.display="none";
		document.getElementById("jq9").style.display="none";
		break;
		case 3:
		document.getElementById("jq1").style.display="none";
		document.getElementById("jq2").style.display="none";
		document.getElementById("jq3").style.display="block";
		document.getElementById("jq4").style.display="none";
		document.getElementById("jq5").style.display="none";
		document.getElementById("jq6").style.display="none";
		document.getElementById("jq7").style.display="none";
		document.getElementById("jq8").style.display="none";
		document.getElementById("jq9").style.display="none";
		break;
		case 4:
		document.getElementById("jq1").style.display="none";
		document.getElementById("jq2").style.display="none";
		document.getElementById("jq3").style.display="none";
		document.getElementById("jq4").style.display="block";
		document.getElementById("jq5").style.display="none";
		document.getElementById("jq6").style.display="none";
		document.getElementById("jq7").style.display="none";
		document.getElementById("jq8").style.display="none";
		document.getElementById("jq9").style.display="none";
		break;
		case 5:
		document.getElementById("jq1").style.display="none";
		document.getElementById("jq2").style.display="none";
		document.getElementById("jq3").style.display="none";
		document.getElementById("jq4").style.display="none";
		document.getElementById("jq5").style.display="block";
		document.getElementById("jq6").style.display="none";
		document.getElementById("jq7").style.display="none";
		document.getElementById("jq8").style.display="none";
		document.getElementById("jq9").style.display="none";
		break;
		case 6:
		document.getElementById("jq1").style.display="none";
		document.getElementById("jq2").style.display="none";
		document.getElementById("jq3").style.display="none";
		document.getElementById("jq4").style.display="none";
		document.getElementById("jq5").style.display="none";
		document.getElementById("jq6").style.display="block";
		document.getElementById("jq7").style.display="none";
		document.getElementById("jq8").style.display="none";
		document.getElementById("jq9").style.display="none";
		break;
		case 7:
		document.getElementById("jq1").style.display="none";
		document.getElementById("jq2").style.display="none";
		document.getElementById("jq3").style.display="none";
		document.getElementById("jq4").style.display="none";
		document.getElementById("jq5").style.display="none";
		document.getElementById("jq6").style.display="none";
		document.getElementById("jq7").style.display="block";
		document.getElementById("jq8").style.display="none";
		document.getElementById("jq9").style.display="none";
		break;
		case 8:
		document.getElementById("jq1").style.display="none";
		document.getElementById("jq2").style.display="none";
		document.getElementById("jq3").style.display="none";
		document.getElementById("jq4").style.display="none";
		document.getElementById("jq5").style.display="none";
		document.getElementById("jq6").style.display="none";
		document.getElementById("jq7").style.display="none";
		document.getElementById("jq8").style.display="block";
		document.getElementById("jq9").style.display="none";
		break;
		case 9:
		document.getElementById("jq1").style.display="none";
		document.getElementById("jq2").style.display="none";
		document.getElementById("jq3").style.display="none";
		document.getElementById("jq4").style.display="none";
		document.getElementById("jq5").style.display="none";
		document.getElementById("jq6").style.display="none";
		document.getElementById("jq7").style.display="none";
		document.getElementById("jq8").style.display="none";
		document.getElementById("jq9").style.display="block";
		break;
	}
}

attachment_photo_align=function(img){
    var xyz=_zoom(img.width,img.height,140,140);
    img.width=xyz[0];
    img.height=xyz[1];
    img.style.border="1px solid teal";
    img.style.marginTop=parseInt((150-img.height)/2) + 'px';
}
_zoom=function(w,h,tow,toh){
    var x=w/tow;
    var y=h/toh;
    var xy=1;
    if(x>=1 || y>=1){
        if(x>y){
            w=tow;
            h=parseInt(h/x);
            xy=x;
        }else{
            h=toh;
            w=parseInt(w/y);
            xy=y;
        }
    }
    return [w,h,xy];
}